import { createSSRApp } from "vue";
import App from "./App.vue";
import { createPinia } from 'pinia'
import i18n from "@/locale"
import is from "@/common/is"
import defaultMock from "@/mock"
defaultMock() // 加载mock数据

// console.log(import.meta.env)

// 创建Pinia实例
const pinia = createPinia()
// locale
export function createApp() {
  const app = createSSRApp(App);
  app.use(pinia).use(i18n).use(is)
  return {
    app,
  };
}
